package com.alex.designPattern.proxy.staticProxy;

import com.alex.designPattern.AbstractDao;

public class DaoProxy extends AbstractDao {
	
	private AbstractDao dao;

	@Override
	public Object getById() {
		System.out.println("Do something before getById using static proxy!");
		return dao.getById();
	}

	public AbstractDao getDao() {
		return dao;
	}

	public void setDao(AbstractDao dao) {
		this.dao = dao;
	}
}
